package com.ruoyi.operation.order.wwebchat.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.operation.order.wwebchat.domain.Wwebchat;
import com.ruoyi.operation.order.wwebchat.service.IWwebchatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping(value = "/wwebchat/wwebchat")
public class WwebchatController extends BaseController {

    @Autowired
    private IWwebchatService wwebchatService;


    @RequestMapping(value = "/selectWwOrWebchat")
    @ResponseBody
    public List<Wwebchat> selectWwOrWebchat(Wwebchat wwebchat){
        return wwebchatService.selectByWwOrWebchat(wwebchat);
    }
}
